package com.adcc.loadsheet.billing.entity.permission;

import com.adcc.loadsheet.billing.entity.BasisEntity;
import com.adcc.loadsheet.billing.vo.permission.PermissionEntityVO;

/**
 * 权限表实体类
 * Created by zhaoml on 2020/9/22.
 */
public class PermissionEntity extends BasisEntity<PermissionEntityVO> {
    private Integer functionPermissionId;     //主键
    private String permissionMark;    //权限标识(用于系统内部的处理如果为数据权限则此处存放手册二级目录id)
    private String permissionDescription;    //权限描述信息
    private Integer permissionType;   //权限类型
    private Integer parentPermissionId;   //功能权限属性结构的父节点id；根节点权限为0，单节点权限为-1

    @Override
    public PermissionEntityVO toVO() {
        PermissionEntityVO permissionEntityVO = new PermissionEntityVO();
        permissionEntityVO.setFunctionPermissionId(this.functionPermissionId);
        permissionEntityVO.setPermissionMark(this.permissionMark);
        permissionEntityVO.setPermissionDescription(this.permissionDescription);
        permissionEntityVO.setPermissionType(this.permissionType);
        permissionEntityVO.setParentPermissionId(this.parentPermissionId);
        return permissionEntityVO;
    }

    public Integer getFunctionPermissionId() {
        return functionPermissionId;
    }

    public void setFunctionPermissionId(Integer functionPermissionId) {
        this.functionPermissionId = functionPermissionId;
    }

    public String getPermissionMark() {
        return permissionMark;
    }

    public void setPermissionMark(String permissionMark) {
        this.permissionMark = permissionMark;
    }

    public String getPermissionDescription() {
        return permissionDescription;
    }

    public void setPermissionDescription(String permissionDescription) {
        this.permissionDescription = permissionDescription;
    }

    public Integer getPermissionType() {
        return permissionType;
    }

    public void setPermissionType(Integer permissionType) {
        this.permissionType = permissionType;
    }

    public Integer getParentPermissionId() {
        return parentPermissionId;
    }

    public void setParentPermissionId(Integer parentPermissionId) {
        this.parentPermissionId = parentPermissionId;
    }
}